package com.example.societiesSystem.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author gl
 * @since 2025-05-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
@ExcelIgnoreUnannotated
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户的唯一标识符")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("id")
    private Long id;

    @ApiModelProperty(value = "用户登录系统的账号名")
    @TableField("user_name")
    @ExcelProperty("登录账号")
    private String userName;

    @ApiModelProperty(value = "用户登录密码，存储加密后的值")
    @TableField("pass_word")
    @ExcelProperty("登录密码")
    private String passWord;

    @ApiModelProperty(value = "用户的真实姓名")
    @TableField("name")
    @ExcelProperty("姓名")
    private String name;

    @ApiModelProperty(value = "用户的性别")
    @TableField("gender")
    @ExcelProperty("性别")
    private String gender;

    @ApiModelProperty(value = "用户的年龄")
    @TableField("age")
    @ExcelProperty("年龄")
    private Integer age;

    @ApiModelProperty(value = "用户的电子邮箱")
    @TableField("email")
    @ExcelProperty("邮箱")
    private String email;


    @ApiModelProperty(value = "用户的地址")
    @TableField("address")
    @ExcelProperty("地址")
    private String address;

    @ApiModelProperty(value = "用户类型，默认为2")
    @TableField("type")
    @ExcelProperty("用户类型")
    private Integer type;

    @ApiModelProperty(value = "用户状态，默认为1（启用）")
    @TableField("status")
    @ExcelProperty("用户状态")
    private Integer status;

    @ApiModelProperty(value = "记录用户创建的时间戳")
    @TableField("created_at")
    @ExcelProperty("创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "记录用户信息最后更新的时间戳")
    @TableField("updated_at")
    @ExcelProperty("更新时间")
    private LocalDateTime updatedAt;


}
